package com.example.myactspringboot.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import com.alibaba.excel.annotation.ExcelProperty;

import java.io.PrintWriter;
import java.util.List;

/**
 * @Author Zhouchb
 * @Create 2024-03-26 19:56
 * @Description
 */
public class ExcelBean {
    @Excel(name = "姓名", width = 20,needMerge = true)
    private String name ;
    @Excel(name = "年龄", width = 20,needMerge = true)
    private int age;
    @ExcelCollection(name = "")
    private List<CommonBean> list;
    @Excel(name = "共同部分", width = 20,needMerge = true)
    private String common;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public List<CommonBean> getList() {
        return list;
    }

    public void setList(List<CommonBean> list) {
        this.list = list;
    }

    public String getCommon() {
        return common;
    }

    public void setCommon(String common) {
        this.common = common;
    }
}
